﻿using Rsd.Dudu.ModelProvider;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Table("book_统筹账户资金使用", "book__tong_zhou_zhang_hu_shi_yong", "id")]
    [Serializable]
    public class BookTongChouZhangHuShiYongModel : Rsd.Faith.Core.ModelBase
    {
        /// <summary>
        /// 账户编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("zhang_hu_bian_hao", "账户编号", 20, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }
        
        /// <summary>
        /// 所属周期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 21, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }
       
        /// <summary>
        /// 流水号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("liu_shui_hao", "流水号", 22, 50)]
        [DisplayName("流水号")]
        public string LiuShuiHao { get; set; }

        /// <summary>
        /// 记账日期
        /// </summary>
        [DateTimeFormat("yyyy-MM-dd")]
        [DateTimeType("ri_qi", "记账日期", 24,3)]
        [DisplayName("记账日期")]
        public DateTime RiQi { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [NumericType("jin_e", "金额", 26, 20, 2)]
        [DisplayName("金额")]
        public decimal JinE { get; set; }

        /// <summary>
        /// 交易后余额
        /// </summary>
        [NumericType("yu_e", "交易后余额", 27, 20, 2)]
        [DisplayName("交易后余额")]
        public decimal YuE { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        [StringType("zhai_yao", "摘要", 28, 100)]
        [DisplayName("摘要")]
        public string ZhaiYao { get; set; }

      
        /// <summary>
        /// 
        /// </summary>
        public BookTongChouZhangHuShiYongModel()
        { }
    }
}
